/**
 * 自定义插件
 */
//使用ajax提交表单
function SaveForm(formid, requestUrl) {
	var result = "";
	$.ajax({
		type:"POST",
		url:requestUrl,
		data:$('#'+formid).serialize(),
		async: false,
			error: function(request) {
			alert("请求失败"+request.responseText);
			},
		success:function(data){
			result = String($.trim(data));
		}
	});
	return result;
}

//使用ajax无刷新请求
function AjaxRequest(requestUrl) {
	var result = "";
	$.ajax({
		type:"POST",
		url:requestUrl,
		async: false,
			error: function(request) {
			alert("请求失败"+request.responseText);
			},
		success:function(data){
			result = String($.trim(data));
		}
	});
	return result;
}

//分页跳转
function ChangePage(url, currentPage, pageSize){
	location.href=url+"?currentPage="+currentPage+"&pageSize="+pageSize;
}
